-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PPS fixes in using DBOutputService followup #36180
Conversation
@tvami here is the draft RP |
Thanks! |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36180/26755
|
A new Pull Request was created by @fabferro (Fabrizio Ferro) for master. It involves the following packages:
@cmsbuild, @ggovi, @tvami, @malbouis, @francescobrivio can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
edm::Service<cond::service::PoolDBOutputService> poolDbService; | ||
if (poolDbService.isAvailable()) { | ||
poolDbService->writeOneIOV(*pCTPPSPixelAnalysisMask, analysismaskiov_, /*m_record*/ record_); | ||
poolDbService->writeOneIOV(analysisMask, analysismaskiov_, /*m_record*/ record_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
poolDbService->writeOneIOV(analysisMask, analysismaskiov_, /*m_record*/ record_); | |
poolDbService->writeOneIOV(analysisMask, analysismaskiov_, record_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tvami here I get from @wpcarvalho (who is testing the package) the following comment:
""It is saving a CTPPSPixelDAQMapping const* object instead of a CTPPSPixelDAQMapping
Removing "&" in
const auto mapping = &es.getData(tokenMapping_);
would fix the issue.""
I'm a bit puzzled now...
edm::Service<cond::service::PoolDBOutputService> poolDbService; | ||
if (poolDbService.isAvailable()) { | ||
poolDbService->writeOneIOV(*pCTPPSPixelDAQMapping, daqmappingiov_, /*m_record*/ record_); | ||
poolDbService->writeOneIOV(mapping, daqmappingiov_, /*m_record*/ record_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
poolDbService->writeOneIOV(mapping, daqmappingiov_, /*m_record*/ record_); | |
poolDbService->writeOneIOV(mapping, daqmappingiov_, record_); |
&tAR = tokenAlignmentReal_, | ||
&tAM = tokenAlignmentMisaligned_]() -> const CTPPSRPAlignmentCorrectionsData* { | ||
if (r == "CTPPSRPAlignmentCorrectionsDataRcd") { | ||
return &eS.getData(tAI); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont really understand why this couldnt just be
return &eS.getData(tAI); | |
return &eS.getData(tokenAlignmentIdeal_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because, in my understanding, tAI is the captured variable. In fact, if I do your change I get compilation errors.
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36180/26797
|
@cmsbuild , please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-12ba06/20681/summary.html Comparison SummarySummary:
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36180/26913
|
@fabferro looks good to me, can you please convert it to a full PR? |
@cmsbuild , please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-12ba06/20793/summary.html Comparison SummarySummary:
|
Hi @tvami, do you think this PR is ok for merging? Thanks. |
It's fine for me, I wanted @ggovi to have the final word on it tho, let me ask him! |
+db
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Fixes in use of DBOutputService for PPS code.
Followup of PR#36008.
PR validation:
Validated by PPS DB experts. The payloads are produced correctly.